package com.tbvtc.agriculturalcreditchainserver2025.dto.consumer;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class addCartDto {
    @Schema(description = "用户id")
    private Integer userId;
    @Schema(description = "商品id")
    private Integer goodId;
    @Schema(description = "商品数量")
    private Integer num;
    @Schema(description = "用户电话")
    private String phone;
    @Schema(description="创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime time;
}
